package es.juanc.io;

import java.io.File;
import java.util.Arrays;
import java.util.List;

public class FilesTest {
	
	public static void main( String[] args ) {
		
		//
		File dir = new File( "/home/jcarlos/UOC/BD" );
		File[] files = dir.listFiles();
		List<File> l = Arrays.asList( files );
		System.out.println(l);
		
		//
		File f = new File( "/home/jcarlos/UOC/BD/mao.si" );
		if( f.delete() ) {
			System.out.println("borrado");
		} else {
			System.out.println("no borrado");
		}
		
	}
	
}
